import request from '@/utils/request'
// -------- 定价和波比 --------

let BASE_ADDRESS = 'financial/priceCommission'

//  分页查询
export function getPriceCommissionListApi(params) {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}
//  咨询搜索查询
export function getconsultTypeApi(params) {
    return request({
        url: `work/consultType/list`,
        method: "get",
        params
    })
}
//  修改
export function getPriceCommissionEditApi(data) {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}

//  项目设置查询
export function getprojectPriceApi(params) {
    return request({
        url: `financial/projectPrice/list`,
        method: "get",
        params
    })
}
//  项目设置搜索
export function getprojectTypeApi(params) {
    return request({
        url: `work/projectType/list`,
        method: "get",
        params
    })
}
//  项目设置编辑
export function editprojectPriceApi(data) {
    return request({
        url: `financial/projectPrice/edit`,
        method: "put",
        data
    })
}

// 合同文控和智慧预算 编辑接口
export function editToolPriceApi(data) {
    return request({
        url: `financial/toolPrice/addlistCover`,
        method: "post",
        data
    })
}

// 获取智慧预算和合同文控的定价参数
export function getToolPriceListApi(params) {
    return request({
        url: `/financial/toolPrice/list`,
        method: "get",
        params
    })
}